
using Qdb;
using Qdb.Config;

namespace Qdb.Config
{
	/// <summary>
	/// Assigns a fixed, pre-defined name to the given
	/// <see cref="Qdb.IObjectContainer">Qdb.IObjectContainer</see>
	/// .
	/// </summary>
	public class SimpleNameProvider : INameProvider
	{
		private readonly string _name;

		public SimpleNameProvider(string name)
		{
			_name = name;
		}

		public virtual string Name(IObjectContainer db)
		{
			return _name;
		}
	}
}
